<?xml version="1.0" encoding="UTF-8"?>
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1">

<jsp:text><![CDATA[
<script type="text/javascript">
    function showNowShowing() {
      document.getElementById("menuList").todo.value = "showAllMovies";
      document.getElementById("menuList").submit();
    }
    function signingUp() {
      document.getElementById("menuList").todo.value = "signUp";
      document.getElementById("menuList").submit();
    }
</script>

<!-- header -->
   <div id="header">
    	<div id="logo"><a href="#"><span class="black">Cult Ticketing System</span></a>
            <div id="language">
                <a href="#">English </a>
                <a href="#">中文</a>
            </div>
        
        </div>

       <form name="menuList" id="menuList" method="post" action=" ]]></jsp:text><jsp:expression>request.getContextPath()</jsp:expression><jsp:text><![CDATA[/index.do">
        <input type="hidden" name="todo" id="todo" value="" />
        <input type="hidden" name="movieStatus" id="movieStatus" value="true" />

        <div id="menu">
          <ul id="leftmenu">
            <li><a href="">Home</a></li>
            <li><a href="">Movie Houses</a></li>
            <li><a href="javascript:showNowShowing();">Now Showing</a></li>
            <li><a href="">Upcoming </a></li>
          </ul>
          <ul id="rightmenu">]]></jsp:text>

            <jsp:scriptlet>
                final String MANAGER = "manager";
                final String OFFICER = "officer";
                final String CUSTOMER = "customer";
                if (session.getAttribute("role") != null &amp;&amp; (((String)session.getAttribute("role")).equalsIgnoreCase(MANAGER) || session.getAttribute("role").toString().equalsIgnoreCase(OFFICER))) {</jsp:scriptlet>
                    <jsp:text><![CDATA[<li><a href="">Manage</a></li>]]></jsp:text>
                  <jsp:scriptlet>}
                else {</jsp:scriptlet>
                    <jsp:text><![CDATA[<li><a href="javascript:signingUp()">Sign Up</a></li>]]></jsp:text>
            <jsp:scriptlet>}</jsp:scriptlet>

            

          <jsp:text><![CDATA[
          </ul>
        </div>
    </form>
    </div>
    <!--end header -->

    <div class="apple_overlay" id="overlay">
	<!-- the external content is loaded inside this tag -->
	<div class="contentWrap"></div>

</div>]]></jsp:text> 
</jsp:root>
